package com.lesent.kafka.spring.model;

import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serializable;
import java.util.List;

/**
 * 监控事件
 */
public class CrowdEvent implements Serializable {

    private static final long serialVersionUID = -1003896215297395794L;

    /**
     * 相机ID
     */
    @JSONField(name="camera_id")
    private String cameraId;

    /**
     * 人数
     */
    @JSONField(name="person_count")
    private Integer personCount;

    /**
     * 密度
     */
    @JSONField(name="density")
    private Double density;

    /**
     * 事件列表
     */
    @JSONField(name="incidents")
    private List<EventDetail> incidents;

    @JSONField(name="time")
    private Long time;

    public String getCameraId() {
        return cameraId;
    }

    public void setCameraId(String cameraId) {
        this.cameraId = cameraId;
    }

    public Integer getPersonCount() {
        return personCount;
    }

    public void setPersonCount(Integer personCount) {
        this.personCount = personCount;
    }

    public Double getDensity() {
        return density;
    }

    public void setDensity(Double density) {
        this.density = density;
    }

    public List<EventDetail> getIncidents() {
        return incidents;
    }

    public void setIncidents(List<EventDetail> incidents) {
        this.incidents = incidents;
    }

    public Long getTime() {
        return time;
    }

    public void setTime(Long time) {
        this.time = time;
    }

}
